package com.learning.java.optimize.design.pattern.observer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * ClassName: ApplicationInitLoading
 * Description: Spring容器启动后，执行一些特定的业务代码，如初始化字典表、启动未执行的调度任务，加载缓存等等
 * Date: 2020/3/21 14:56 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Slf4j
@Component
public class ApplicationInitLoading implements ApplicationListener<ApplicationStartedEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartedEvent applicationStartedEvent) {
//        log.info("在Spring上下文容器启动后，初始化一些业务功能");
    }
}
